package com.saikuo.service.dao;

import com.saikuo.service.vo.MedicineDetailView;
import com.saikuo.service.vo.MedicinePicView;
import com.saikuo.service.vo.MedicineView;
import com.saikuo.service.vo.SearchTagView;

import java.util.List;

/**
 * Created by shanchangyu on 16/10/17.
 */
public interface IMedicineDao {
    List<SearchTagView> getMedicineTopicSearchTag();

    List<MedicineView> getMedicinesByCategoryId(int categoryId, int sortType, int from, int limit);

    List<MedicineView> getHotMedicines(int from, int limit);

    List<MedicinePicView> getMedicinePicsByMedicineId(int medicineId);

    MedicineDetailView getMedicineDetailById(int medicineId);

    List<MedicineView> getMedicineDetailByOrderId(Long orderId);

    String getTopicSaleMedicine(int topicSaleId);

    List<MedicineView> getMedicinesByIds(List<Integer> medicineIds);

    int updateMedicineSaleCount(List<MedicineView> list);
}
